<template>
  <div>
    <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
      <el-tab-pane label="saches1" name="first"><eaches></eaches></el-tab-pane>
      <el-tab-pane label="saches2" name="second"></el-tab-pane>
      <el-tab-pane label="saches3" name="third">Role</el-tab-pane>
      <el-tab-pane label="saches4" name="fourth">Task</el-tab-pane>
    </el-tabs>
  </div>
</template>
<script setup lang="ts">
import eaches from "../../components/eaches.vue";
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'

const activeName = ref('first')

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event)
}
</script>
<style scoped>
.demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}
</style>